package com.burst.reptile.modular.api.form;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import lombok.Data;

/**
 * 修改手机号表单
 * @author wujin
 *
 * @date: 2020-9-4 10:11:35
 */
@Data
public class EditPhoneForm implements Serializable{

	private static final long serialVersionUID = 1L;

	/**
	 * 原手机号
	 */
	@NotBlank(message = "请输入当前绑定手机号")
	@Size(min = 0, max = 11, message = "手机号格式不正确")
	private String oldPhone;
	
	/**
	 * 新手机号
	 */
	@NotBlank(message = "请输入新手机号")
	@Size(min = 0, max = 11, message = "手机号格式不正确")
	private String newPhone;
	
	/**
	 * 请求唯一标识
	 */
	@NotBlank(message = "验证码不正确")
	private String uuid;
	
	/**
	 * 验证码
	 */
	@NotBlank(message = "验证码不正确")
	private String code;

}
